package com.billdimmick.merkabah;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public abstract class SQSSecurityAdapter extends AWSSecurityAdapter{
	private static final Log log=LogFactory.getLog(SQSSecurityAdapter.class);
	
	private boolean shouldEncryptMessages=false;
	private boolean shouldSignMessages=false;
	private boolean shouldObfuscateQueueNames=false;
	private String encryptionKeyName;
	private String signingKeyName;
		
	public void setEncryptionKeyName(final String encryptionKeyName) {
		this.encryptionKeyName = encryptionKeyName;
	}
	
	public String getEncryptionKeyName() {
		return encryptionKeyName;
	}
	
	public void setSigningKeyName(final String signingKeyName) {
		this.signingKeyName = signingKeyName;
	}
	
	public String getSigningKeyName() {
		return signingKeyName;
	}

	public void setShouldEncryptMessages(final boolean shouldEncryptMessages) {
		this.shouldEncryptMessages = shouldEncryptMessages;
	}

	public boolean shouldEncryptMessages() {
		return shouldEncryptMessages;
	}

	public void setShouldSignMessages(final boolean shouldSignMessages) {
		this.shouldSignMessages = shouldSignMessages;
	}

	public boolean shouldSignMessages() {
		return shouldSignMessages;
	}

	public void setShouldObfuscateQueueNames(final boolean shouldObfuscateQueueNames) {
		this.shouldObfuscateQueueNames = shouldObfuscateQueueNames;
	}

	public boolean shouldObfuscateQueueNames() {
		return shouldObfuscateQueueNames;
	}
}
